using QQZiFramework.Membership;
using QQZiFramework.Modals;
using System;
using System.Collections.Generic;

using System.Text;

namespace QQZiFramework
{
    //后台服务类继承该接口，只要继承了，会自动执行相应方法
    public interface IServerHandle
    {
        void OnServerRun();

    }


    [AttributeUsage(AttributeTargets.Method, Inherited = true)]
    public class ServerOption : Attribute
    {
        /// <summary>
        /// 指定的OEM不执行
        /// </summary>
        public string ExcludeOEMS { get; set; }

        /// <summary>
        /// 仅指定的OEM执行
        /// </summary>
        public string IncludeOEMS { get; set; }


        /// <summary>
        /// 仅指定时间运行（时间配置在config中）
        /// </summary>
        public string AtTimeConfig { get; set; }
    }

}